I’ve looked through the API docs and there’s no mention of being able to get a list of services that belong to a particular business service. How can we achieve this?
How to get all technical services by business service id
Hello @olivia.mo!
The way to achieve this is to use the Service Dependencies endpoint and get all the dependencies for that Business service.
One thing to take into consideration is that a Business service can depend on another Business service so you need to look for services with type technical_service_reference.
I hope this helps.
Hi @olivia.mo. Thanks for asking this question. I hadn’t really dug into the dependencies too much, so I worked through one way to approach this on the HowTo Happy Hour last week. I wrote up my approach and posted it in the HowTo section. https://community.pagerduty.com/forum/t/retrieve-all-dependencies-in-a-service-graph/6354.
If you found a solution you’d be willing to share, we’d love to see it!
thanks!
–mandi